/******************* 公共变量 *******************/
var userId = core.getUrlData('user_id'),
	introduction = decodeURIComponent(core.getUrlData('introduction'));

/******************* Vue初始化代码 *******************/
var vm = new Vue({
	el: '.wrap',
	data: {
		userId: userId,
		introduction: introduction
	},
	methods: {
		save: function () {
			var _this = this;
			$.ajax({
					url: userUpdateUrl,
					type: 'post',
					data: {
						user_id: _this.userId,
						introduction: _this.introduction
					},
					success: function(data) {
						console.log(data)

						if (data.result == 1) {
							core.hintBack(data.message);
						} else {
							core.layerHint(data.message);
						}
					}
				});
		}
	},
	computed: {
		
	},
	components: {
		
	},
	created: function () {
		
	},
	mounted: function () {
		common.bindBack();
	}
});

